package io.gitee.kotle.demo.mvvm_demo.pic


import android.view.View
import io.gitee.kotle.android.adapter.RecyclerViewHolder
import io.gitee.kotle.android.utils.setGone
import io.gitee.kotle.demo.databinding.HolderLoadMoreBinding


class LoadMoreHolder : RecyclerViewHolder<Pair<Boolean, String>, HolderLoadMoreBinding> {
    constructor(binding: HolderLoadMoreBinding) : super(binding)
    constructor(itemView: View) : super(itemView)

    override fun bindData(data: Pair<Boolean, String>) {
        mBinding.pb.setGone(data.first)
        mBinding.text.text = data.second
    }
}